const mongoose = require("mongoose");

const schema = new mongoose.Schema({
    // 属性名:数据类型,
    name: String, // 放映厅名字
    status: Boolean, // 放映厅是否营业（可选）
    cinemasId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "cinemas"
    }, // 放映厅从属的影院 id
})
mongoose.model("theaters", schema, "theaters");